BlueCielo Meridian Enterprise 2013 Developer's Guide | BlueCielo ECM Solutions

AMFileInVault object

The AMFileInVault object gives access to environment streams stored in a vault.

Members
Name Description

Init method

Provides a reference to the vault

ReadFromVault method

Copies a named stream to a file

WriteToVault method

Copies a file to a named stream

Remarks

The object cannot be used to access document content.

It only accesses streams used for settings that are global to the vault (for example, Application Link settings).

You can use it to store information used by your customization.

Sub Init(lpRep As Object, [lpServices As Object])
lpRep

An AMDocumentRepository instance of the vault.

lpServices

Provides m_Designer.GetHostService(SERVICE_PROVIDER) if available (optional).

Sub ReadFromVault(bstrWhat As String, pbstrLocation As String)
bstrWhat

The unique name of the stream.

pbstrLocation

The path of the file the stream is copied to.

Sub WriteToVault(bstrLocation As String, bstrTo As String)
bstrLocation

The path of the file to copy to the stream.

bstrTo

The unique name of the stream.

Example

   ' Create an instance of AMFileInVault
   Dim file As New AMFileInVault
   
   ' Initialize the instance with the repository object     
   file.Init m_Designer.Repository, _
             m_Designer.GetHostService(SERVICE_PROVIDER)
   ' Copy the stream from the vault to the file system
   file.ReadFromVault "MyStream", "C:\MyStream.ini”

Copyright © 2000-2013 BlueCielo ECM Solutions